home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZDOSFLG.C < prev    next >
Text File  |  1989-04-09  |  697b  |  26 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ jzdosflg.c                                     │
  4. │ Return the vector of the dos flag. The vector is the equivalent of a         │
  5. │ char far pointer. If the byte there is 0, it's safe to call dos from an    │
  6. │ interrupt handler.                                 │
  7. │                                         │
  8. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12.  
  13. #include <jaz.h>
  14. jzdosflg(fvector)
  15. TVECTOR *fvector;
  16. {
  17.   TREG wreg;
  18.  
  19.   wreg.h.ah = 0x34;            /* get address of dos flag */
  20.  
  21.   msdos(&wreg);
  22.  
  23.   fvector->segment = wreg.x.es;
  24.   fvector->offset  = wreg.x.bx;
  25. }
  26.